home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
help.arc
/
HELP.DOC
< prev
next >
Wrap
Text File
|
1985-08-18
|
6KB
|
131 lines
Configuring The Help Facility
The new SCP help facility can be easily tailored for OEM or
end user needs. The program "HELP.COM" looks for a file "HELP.SYS" in
the default directory, or through path searching. When distributed, HELP
is located in the BIN directory with the rest of the command files.
HELP.SYS is really just an ASCII text file with a few special
control keys embedded for text manipulation. If you have a screen editor
that can insert control characters (Control-C,etc.) ,such as VEDIT, then
you can re-edit the file for your specific needs, such as special commands,
further explanations. Explained below is how the text file is manipulated.
HELP.COM searches for the file "HELP.SYS" on the default directory.
If it is not found, the default environment will be searched for "PATH="
then it will start path searches, just as the command processor does. If
you have another application which uses the same filename "HELP.SYS" then you
can rename the file,and with the debugger, you can change HELP.COM to search
for another name. See explanation below.
IF HELP finds the file, it opens it with XENIX type file calls. An
8K buffer is established and the 1st 8k of the file is read in. If there was
no key or subkey typed when help starts up, the default menu is displayed.
When a key is type (such as 'debug') HELP will search each 'record' until
it finds that key. Case is ignored and the length of the key doesn't matter.
You do not have to type the full key name for searching, it will just search
for the 1st match of the key name entered. You need type a key only up to the
first significant letter. For example:
"BAT" Will find batch processing record.
"BAC" Will find the backup record.
Records are seperated from each other by a Control-A (01H). If there
are subkeys for that record, (such as FIND OPTION) the subkey records have a
Control-B at the beggining of the record. Records can be any length, if the
text buffer fills up, it will automatically fill in more. When the proper
record is found, text is display to the screen, a line counter keeps track
of the number of lines. If the text fills more than 23 lines, the scrolling
stops and waits for user (unless pause flag is disabled). The only non-alpha
characters in the file are Control-D (04H) - page screen, and Control-C - end
of file. A summary of the control keys is below:
Control-A : Marks beginning of text record.
Control-B : Marks beginning of sub-key text record.
Control-D : Page screen (if pause flag). Stop text
writing and fill screen with blanks. Wait
for user entry to start. (Cleans up display
into desired screen pages)
Control-C : End of file.
The command line in help is a standard buffer and can use the
standard DOS editing template keys. If a simple return is typed, the old
template will not be lost. Typing a control-x while records are viewed will
return the user to the help command level. You can return to DOS by typing
control-C at any time, or "Q" or "QUIT" from the help command level.
To speed up search of keys and simplify code, it is assumed that the
keys are in alphanumeric order. If they are not, it will not find the key on
the first pass and an error will be generated. It will find the key on the
2nd pass, but this is usually not a desired effect. If you add new records,
make sure they are in alphabetical order.
Changing HELP.SYS to another name: Just rename the file with REN.
REN HELP.SYS (Newname)
You must modify HELP.COM to search for another name. The
debugger DEBUG.COM can do it. Type the following:
DEBUG \BIN\HELP.COM
This will load in the help command file. Then type
D742
You should see:
d742
0B7E:0740 48 45 4C 50-2E 53 59 53 00 00 00 00 HELP.SYS....
0B7E:0750 00 24 00 00 00 00 00 00-00 00 00 00 00 00 00 00 .$..............
0B7E:0760 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
If you don't see the above, search any memory area nearby.
You must only modify if you find "HELP.SYS". This is a
reserved area for the filename. You can modify it by typing
E742 "(Newfilename)",0
E is the enter command, and 704 is the starting address for
the text string. The new filename must be a maximum of 8
characters for the filename and 3 for the extension. You must
put a 0 at the end of the name.
Save your new HELP.COM by typing
W
Q
Do not attempt to modify any registers or other memory
locations as the program will not work then. All error
messages will use the new filename you have just set up.
NEW DOCUMENTATIN
This program was originally written by me for Seattle Computer
products. Some of the documentation in the help.sys will not apply to
the IBM owners! I hope to download most of these programs (Count,Debug
etc.) to the database in the near future as I know they will be useful
to all PC lovers! Most of these programs were set up for generic
MS-DOS machines and will be unfamiliar to the IBM world. Some of the programs
were also distributed by IBM but I modified them at SCP for our own
needs, since I had the source code to MS-DOS and its utilities.
I hope to xmit most of these different programs sometime soon as
I feel the whole community of users can use them, and since I no longer
work at SCP I have complete rights to them! Enjoy it!
Craig Derouen
Seattle,Wa